﻿<Window x:Class="AlertWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="AlertWindow"  ShowInTaskbar="False"
        Width="280" Height="150"  WindowStyle="ToolWindow"  
        ShowActivated="False" Visibility="Collapsed">
    <Window.Background>
        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" SpreadMethod="Pad">
            <GradientStop Color="#FFBDD0E5" Offset="0.107"/>
            <GradientStop Color="#FF82AFDF" Offset="1"/>
            <GradientStop Color="#FF99B4D1" Offset="0.679"/>
        </LinearGradientBrush>
    </Window.Background>
   

    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="110" />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>

        <StackPanel>
           
            <Image 
                Width="96" Height="96" Margin="5" 
                Name="IconImage"
                HorizontalAlignment="Left"
                MouseLeftButtonDown="OpenUri"
                Cursor="Hand">
                <Image.BitmapEffect>
                    <DropShadowBitmapEffect Softness=".5" ShadowDepth="5" Color="Black"/>
                </Image.BitmapEffect>
                <Image.ContextMenu>
                    <ContextMenu>
                        <MenuItem Header="クリップボードへURLをコピー" Click="MenuItem_Click"  />
                    </ContextMenu>
                </Image.ContextMenu>
            </Image>
        </StackPanel>
         
        <Grid Grid.Column="1" >
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition Height="20" />
            </Grid.RowDefinitions>
            <StackPanel>

                <TextBlock Name="TitleTextBlock" TextWrapping="Wrap" 
                           TextDecorations="Underline" Foreground="#228" Cursor="Hand"
                           MouseLeftButtonDown="OpenUri">
                            <TextBlock.ContextMenu>
                                <ContextMenu>
                                    <MenuItem Header="クリップボードへURLをコピー" Click="MenuItem_Click"  />
                                </ContextMenu>
                            </TextBlock.ContextMenu>
                </TextBlock>
<!--
                <TextBlock TextWrapping="Wrap">
                    <Hyperlink Foreground="#228" Name="TitleHyperLink" Click="TitleHyperLink_Click">
                    </Hyperlink>
                </TextBlock>-->
                    
                <TextBlock TextWrapping="Wrap" Foreground="#333" Name="ContentTextBlock"></TextBlock>
            </StackPanel>

            <StackPanel Orientation="Horizontal" Grid.Row="1">
                <Label Padding="1" Foreground="#333" Name="StartDateTimeLabel">88:88</Label>
                <Label Padding="1" Foreground="#333" Name="RemainingTimeLabel">(残り30分)</Label>
            </StackPanel>
        </Grid>
        
    </Grid>
</Window>
